<?php

namespace api;
use controller;

use model\categoryModel;

class category extends controller{

    public function __construct($container)
    {
        parent::__construct($container);
    }

    public function tree(){


        $tree = categoryModel::tree();

        echo json_encode( $tree );
    }

}